package day01;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class People {
    private String name;
    private int age;
    private String gender ;

    public People() {
    }

    public People(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public void eat(){
        System.out.println("我要吃饭");
    }

}
class Student extends People{
    public Student() {
        super();
    }

    @Override
    public void eat() {
        System.out.println("我是学生、我要吃学生饭");
    }
}
